package com.yida.common.core.utils.bean;

import java.util.HashMap;
import java.util.Map;

public class BeanMapUtils {

	/**
	 * 构建map
	 * @param keys
	 * @param objects
	 * @return
	 */
	public static Map<String,Object> createHashMap(String[]keys,Object[]objects) {
		if(keys.length==objects.length) {
			Map<String,Object> map = new HashMap<String,Object>();
			for(int i=0;i<keys.length;i++) {
				map.put(keys[i], objects[i]);
			}
			return map;
		}
		return null;
	}
	
}
